/*
 * @Author: nqx2007 fenglimima334@163.com
 * @Date: 2023-12-04 18:06:03
 * @LastEditors: nqx2007 fenglimima334@163.com
 * @LastEditTime: 2023-12-05 08:52:43
 * @FilePath: /operator-manager/config/routes.ts
 * @Description: 路由配置
 */


export default [
    {
      path: '/',
      component:'@/layouts/index',
      redirect:'/home',
    },
    {
        path:'/login',
        name:'登录',
        component:'./Login',
        layout:false
    },
    {
        path:'/find',
        name:'找回密码',
        component:'./FindPw',
        layout:false
    },
    {
        name: '首页',
        path: '/home',
        component: './Home',
        icon:'AppstoreOutlined'
    },
    {
        name:'用户管理',
        path:'/users_manage',
        icon:'AppstoreOutlined',
        routes:[
            {
                name: '用户列表',
                path: '/users_manage/user_list',
                component: './UsersManage/UsersList',
            }
        ]
    },
    {
        name:'商家管理',
        path:'/business_manage',
        icon:'AppstoreOutlined',
        routes:[
            {
                name: '入驻审核',
                path: '/business_manage/enter_audit',
                component: './BusinessManage/EnterAudit',
            },
            {
                name: '商家管理',
                path: '/business_manage/business_list_manage',
                component: './BusinessManage/BusinessListManage',
            }
        ]
    },
    {
        name:'订单管理',
        path:'/order_manage',
        icon:'AppstoreOutlined',
        routes:[
            {
                name: '个人订单',
                path: '/order_manage/personal_order',
                component: './OrderManage/PersonalOrder',
            },
            {
                name: '商家订单',
                path: '/order_manage/business_order',
                component: './OrderManage/BusinessOrder',
            }
        ]
    },
    {
        name:'账号权限',
        path:'/account_access_manage',
        icon:'AppstoreOutlined',
        routes:[
            {
                name: '账号管理',
                path: '/account_access_manage/enter_audit',
                component: './AccountAccessManage/AccountManage',
            },
            {
                name: '角色管理',
                path: '/account_access_manage/role_manage',
                component: './AccountAccessManage/RoleManage',
            }
        ]
    },
  ]